<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>第十二章节：事件基础</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
    <script src="js/main.js"></script>
</head>
<body>
    <div class="box001">
        <h3 align="center">事件代码所在位置</h3>
        <h3>事件在script中调用</SCript></h3>
        <input type="button" value="单击弹出我" id="btn1" data_event="调用事件"/>
    </div>
    <div class="box001">
        <h3>事件在script中调用</SCript></h3>
        <input type="button" value="单击弹出我"  onclick="eventInAttri()"/>
    </div>

    <div class="box001">
        <h3>鼠标常用事件：修改成事件onmouseover,onmouseverout试试看</h3>
        <!-- g更换不同事件，领悟 -->
        <!-- onmouseover="mouseEventsReturn()" 
        onmouseout="mouseEventsReturn()" -->
        <div id="mouseEvents" 
        
        onclick="mouseEventsReturn()" 
        >鼠标事件汇总</div>
    </div>
    <div class="box001">
        <h3 align="center">键盘常用两个事件:onkeyDown,onkeyup</h3>
        <h3>统计字符的个数</h3>
        <input type="text" id="inputCharator" >
        <div>字符的个数<span id="num"></span></div>
    </div>
</body>
</html>